package com.yellow.courierservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author: hy
 * @create: 2024-04-09
 */
@TableName(value ="orders")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class Order implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long orderId;

    @TableField(value = "sender_id")
    private Long senderId;


    @TableField(value = "express_method")
    private String expressMethod;

    @TableField(value = "delivery_status")
    private String deliveryStatus;

    @TableField(value = "order_time")
    private String orderTime;

    @TableField(value = "tracking_number")
    private String trackingNumber;

    @TableField(value = "warehouse")
    private String warehouse;

    @TableField(value = "return_status")
    private String returnStatus;

    @TableField(value = "pay_time")
    private String payTime;

    @TableField(value = "buy_way")
    private String buyWay;

    @TableField(value = "pay_way")
    private String payWay;

    @TableField(value = "product_type")
    private String productType;

    @TableField(value = "address")
    private String address;

    @TableField(value = "urgency")
    private String urgency;

    @TableField(value = "more_information")
    private String moreInformation;

    @TableField(value = "courier_name")
    private String courierName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}

